public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist=new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(5);
        myArraylist.add(1);
        myArraylist.add(2);
        System.out.println(myArraylist.contains(2));
        System.out.println(myArraylist.indexOf(5));
        System.out.println(myArraylist.size());
        myArraylist.display();
    }
}
